package com.lx.spring.jdbc.biz;

import com.lx.spring.biz.BizException;
import com.lx.spring.jdbc.dao.AccountDao;
import com.lx.spring.jdbc.entity.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountBiz {

    @Autowired
    AccountDao aDao;

    // 登录
    public Account login(long id, String password) throws BizException {

        Account login = aDao.login(id, password);

        return login;
    }

}
